//
//  Request.h
//  MyApplication
//
//  Created by 彭凯敏 on 15/7/27.
//  Copyright (c) 2015年 52xiaoluo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "head.pb.h"
#import "Message.pb.h"
@class Request;


@protocol RequestDelegate <NSObject>

/**
 *  收到消息成功
 *
 *  @param data    接收到的数据
 */
- (void)onResult:(Packet *)result req:(Request *)req;


@end


@interface Request : NSObject


@property (nonatomic,retain)Packet *packet;
@property (nonatomic,retain)PBGeneratedMessage *oriPb;
@property (nonatomic,assign)NSInteger timeOut;
@property (nonatomic ,retain)id<RequestDelegate>delegate;

@end
